package Day03;

public class OperDemo3 {
    public static void main(String[] args) {
        int a = 15, b = 25, c = 15;
        /*
        boolean b1 = a <= b && c <= a;
        System.out.println(b1);
        System.out.println(b >= a && c <= b);
        System.out.println(b != c && a == b);

        int age = 50;
        System.out.println(age >= 30 && age <= 70);
        int score = 70;
        System.out.println(score >= 60 && score <= 100);
        */

/*
        System.out.println(b >= a || b > c);
        System.out.println(b <= c || b > a);
        System.out.println(b != c || a < b);
        System.out.println(a == b || b < c);
        int score = 80;
        System.out.println(score<=0||score>=100);



        boolean b1 = !(a>b);
        System.out.println(b1);       //!ture = false
        System.out.println(!(a>b));   //!false = ture
        */

/*
        boolean b1 = a > b && c++ > 2;
        System.out.println(b1);      //false
        System.out.println(c);       //发生短路，c没运算依旧是5
*/

        boolean b2 = a < b || c++ > 2;
        System.out.println(b2);//true
        System.out.println(c);//发生短路，没运算，c依旧是5


    }

}
